<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
</head>
<body>

<div class="layui-form" lay-filter="layuiadmin-form-role" id="layuiadmin-form-role" style="padding: 20px 0 0 0;">

    <div class="layui-form-item">
        <label class="layui-form-label">默认</label>
        <div class="layui-input-inline">
            <input style="background-color: #b8acac26;" type="text" placeholder="" autocomplete="off" class="layui-input" disabled value="{$first_pay}">
        </div>
        <div class="layui-form-mid layui-word-aux">平台默认开始收费章节</div>
    </div>


    {if $roleAlias == 'channel'}
    <div class="layui-form-item">
        <label class="layui-form-label">上级</label>
        <div class="layui-input-inline">
            <input style="background-color: #b8acac26;"  type="text" placeholder="" autocomplete="off" class="layui-input" disabled {if $parentCustom}value="{$parentCustom.chapter_first_pay}"{/if}>
        </div>
        <div class="layui-form-mid layui-word-aux">上级代理定义收费章节</div>
    </div>
    {/if}

    <div class="layui-form-item">
        <label class="layui-form-label">自定义</label>
        <div class="layui-input-inline">
            <input type="hidden" name="novel_id" value="{$novel.id}">
            <input type="hidden" name="key" value="chapter_first_pay">
            <input type="text" name="value" required lay-verify="required|number" placeholder=""  autocomplete="off" class="layui-input" {if $custom}value="{$custom.chapter_first_pay}"{/if}>
        </div>
        <div class="layui-form-mid layui-word-aux">自定义收费章节</div>
    </div>


    <div class="layui-form-item layui-hide">
        <button class="layui-btn" lay-submit lay-filter="LAY-user-role-submit" id="LAY-user-role-submit">提交</button>
    </div>
</div>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script>
    layui.config({
        base: '/static/layuiadmin/' //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form;

    })

</script>
</body>
</html>